import request from '@/utils/request'
// https://api.wuliuren.com/api/roles
export function getRolesList() {
    return request({
        url: '/roles',
        method: 'get'
    })
}

 // https://api.wuliuren.com/api/roles
 export function addRole(data) {
  return request({
      url: '/roles',
      method: 'post',
      data: data
  })
}

 // https://api.wuliuren.com/api/roles
export function updateRole(data) {
  return request({
      url: '/roles/' + data.id,
      method: 'put',
      data: data
  })
}

 // https://api.wuliuren.com/api/roles
export function deleteRole(data) {
  return request({
      url: '/roles/' + data.id,
      method: 'delete'
  })
}
